<?php
	require_once(dirname(__FILE__)."./include/userinfo_data.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh" xml:lang="zh">
<head>
	<title>用户信息</title>
	<link rel="stylesheet" type="text/css" href="css/common.css" />
	<style type="text/css">
.tag1{ width:35%;text-align:right;padding-right:30px}
.tag2{ width:65%;text-align:left;color:green}
</style>
</head>
<body>
	<table align="center" style="width:80%">
		<tr>
			<td>
				<?php require_once("header.php");?></td>
		</tr>
		<tr>
			<td>
				<h2 style="text-align:center;font-weight:bold;font-family:黑体;padding-top:10px">用户信息简介</h2>
<?php
if (!$ret){
?>
				<h6 style="text-align:center;color:red;font-size:20px;">
					对不起，用户名为 <?php echo htmlspecialchars($_GET["user"]); ?> 的用户不存在</h6>
<?php
	}
	else
	{
?>
				<table align="center" border="0" cellspacing="0" cellpadding="8" style="width:60%;text-align:center">
					<tr>
						<td colspan="2" style="text-align:center;" >
							<img alt="my picture" src="<?php if($UserItem->imagesrc != 'none') echo $UserItem->imagesrc;else echo 'images/no.jpg'; ?>" style="width:400px;padding-bottom:50px"/>
						</td>
					</tr>
					<tr>
						<td valign="top" class="tag1" >账号:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->username); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">姓名:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->nickname); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">性别:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->sex); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">学校:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->school); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">E-mail:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->email); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">注册IP:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->ip); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">注册时间:</td>
						<td valign="top" class="tag2">
							<?php echo htmlspecialchars($UserItem->rgtime); ?></td>
					</tr>
					<tr>
						<td valign="top" class="tag1">个人简介:</td>
						<td valign="top" class="tag2">
							<textarea rows="10" cols="80" readonly="readonly" style="width:99%;border:none;color:green"><?php echo htmlspecialchars($UserItem->intra); ?></textarea>
						</td>
					</tr>
				</table>
<?php
	}
?></td>
		</tr>
		<tr>
			<td>
				<?php require_once("footer.php");?></td>
		</tr>
	</table>
</body>
</html>